#include <iostream>
#include <unistd.h>
using namespace std;

int main(){
  for (int i = 0; i < 5; i++){
  cout << "--------------------------------------------------------------------------------------" << endl;
  cout << "I am other process, my pid is: " << getpid() << endl;
  cout << "MYENV: " << (getenv("MYENV")==NULL?"NULL":getenv("MYENV")) << endl;
  cout << "PATH: " << (getenv("PATH")==NULL?"NULL":getenv("PATH")) << endl;
  cout << "--------------------------------------------------------------------------------------" << endl;
  sleep(1);
  }

  return 0;
}
